Esc Key
   HOME

TheInfoList



OR:

On
computer keyboard A computer keyboard is a peripheral input device modeled after the typewriter keyboard which uses an arrangement of buttons or keys to act as mechanical levers or electronic switches. Replacing early punched cards and paper tape technology ...
s, the Esc key (named ''Escape key'' in the international standard series
ISO/IEC 9995 ISO/IEC 9995 ''Information technology — Keyboard layouts for text and office systems'' is an ISO/ IEC standard series defining layout principles for computer keyboards. It does not define specific layouts but provides the base for national and in ...
) is a key used to generate the
escape character In computing and telecommunication, an escape character is a character (computing), character that invokes an alternative interpretation on the following characters in a character sequence. An escape character is a particular case of metacharac ...
(which can be represented as
ASCII ASCII ( ), abbreviated from American Standard Code for Information Interchange, is a character encoding standard for electronic communication. ASCII codes represent text in computers, telecommunications equipment, and other devices. Because of ...
code 27 in decimal,
Unicode Unicode, formally The Unicode Standard,The formal version reference is is an information technology Technical standard, standard for the consistent character encoding, encoding, representation, and handling of Character (computing), text expre ...
U+001B, or ). The escape character, when sent from the keyboard to a computer, often is interpreted by software as "stop", and when sent from the computer to an external device (including many printers since the 1980s,
computer terminal A computer terminal is an electronic or electromechanical hardware device that can be used for entering data into, and transcribing data from, a computer or a computing system. The teletype was an example of an early-day hard-copy terminal and ...
s and
Linux console The Linux console is a system console internal to the Linux kernel. A system console is the device which receives all kernel messages and warnings and which allows logins in single user mode. The Linux console provides a way for the kernel and ...
s, for example) marks the beginning of an
escape sequence In computer science, an escape sequence is a combination of characters that has a meaning other than the literal characters contained therein; it is marked by one or more preceding (and possibly terminating) characters. Examples * In C and man ...
to specify operating modes or characteristics generally. It is now generally placed at the top left corner of the keyboard, a convention dating at least to the original
IBM PC keyboard The keyboard for IBM PC-compatible computers is standardized. However, during the more than 30 years of PC architecture being frequently updated, many keyboard layout variations have been developed. A well-known class of IBM PC keyboards is the ...
, though the key itself originated decades earlier with
teletypewriter A teleprinter (teletypewriter, teletype or TTY) is an electromechanical device that can be used to send and receive typed messages through various communications channels, in both point-to-point and point-to-multipoint configurations. Initia ...
s.


Symbol

The keyboard symbol for the ESC key (which may be used when the usual Latin lettering "Esc" is not preferred for labelling the key) is standardized in
ISO/IEC 9995 ISO/IEC 9995 ''Information technology — Keyboard layouts for text and office systems'' is an ISO/ IEC standard series defining layout principles for computer keyboards. It does not define specific layouts but provides the base for national and in ...
-7 as symbol 29, and in ISO 7000 ''"Graphical symbols for use on equipment"'' as symbol ISO-7000-2029. This symbol is encoded in
Unicode Unicode, formally The Unicode Standard,The formal version reference is is an information technology Technical standard, standard for the consistent character encoding, encoding, representation, and handling of Character (computing), text expre ...
as U+238B (⎋).


Origins

The name of the equivalent key on some early
Teletype Model 33 The Teletype Model 33 is an electromechanical teleprinter designed for light-duty office use. It is less rugged and cost less than earlier Teletype machines. The Teletype Corporation introduced the Model 33 as a commercial product in 1963 after ...
keyboards was labeled Alt Mode..., the alternative mode of operation causing the escapement to treat the following one character in a special way. Much later printers and computer terminals that would use
escape sequences In computer science, an escape sequence is a combination of characters that has a meaning other than the literal characters contained therein; it is marked by one or more preceding (and possibly terminating) characters. Examples * In C and man ...
often would take more than one following byte as part of a special sequence.


Uses

As most computer users are no longer concerned with the details of controlling their computer's
peripherals A peripheral or peripheral device is an auxiliary device used to put information into and get information out of a computer. The term ''peripheral device'' refers to all hardware components that are attached to a computer and are controlled by the ...
, the task for which the escape sequences were originally designed, the escape key was appropriated by application programmers, most often to mean ''Stop''. This use continues today in
Microsoft Windows Windows is a group of several proprietary graphical operating system families developed and marketed by Microsoft. Each family caters to a certain sector of the computing industry. For example, Windows NT for consumers, Windows Server for serv ...
's method of escape as a shortcut in dialog boxes for ''No'', ''Quit'', ''Exit'', ''Cancel'', or ''Abort'', as well as a common shortcut key for the ''Stop'' button in many
web browsers A web browser is application software for accessing websites. When a user requests a web page from a particular website, the browser retrieves its files from a web server and then displays the page on the user's screen. Browsers are used on ...
, and to cancel
drag and drop In computer graphical user interfaces, drag and drop is a pointing device gesture in which the user selects a virtual object by "grabbing" it and dragging it to a different location or onto another virtual object. In general, it can be used to ...
operations. On machines running
Microsoft Windows Windows is a group of several proprietary graphical operating system families developed and marketed by Microsoft. Each family caters to a certain sector of the computing industry. For example, Windows NT for consumers, Windows Server for serv ...
, prior to the implementation of the
Windows key The Windows logo key (also known as Windows-, win-, start-, logo-, flag-, or super-key) is a keyboard key which was originally introduced on the Microsoft Natural keyboard in 1994. This key became a standard key on PC keyboards. In Window ...
on keyboards, the typical practice for invoking the "start" button was to hold down the
Control key In computing, a Control key is a modifier key which, when pressed in conjunction with another key, performs a special operation (for example, ); similar to the Shift key, the Control key rarely performs any function when pressed by itself. ...
and press escape. This key combination still works as of Windows 10. Microsoft Windows makes use of "Esc" for many key shortcuts. Many of these shortcuts have been present since
Windows 3.0 Windows 3.0 is the third major release of Microsoft Windows, launched in 1990. It features a new graphical user interface (GUI) where applications are represented as clickable icons, as opposed to the list of file names seen in its predeces ...
, through
Windows XP Windows XP is a major release of Microsoft's Windows NT operating system. It was released to manufacturing on August 24, 2001, and later to retail on October 25, 2001. It is a direct upgrade to its predecessors, Windows 2000 for high-end and ...
,
Windows Vista Windows Vista is a major release of the Windows NT operating system developed by Microsoft. It was the direct successor to Windows XP, which was released five years before, at the time being the longest time span between successive releases of ...
,
Windows 7 Windows 7 is a major release of the Windows NT operating system developed by Microsoft. It was released to manufacturing on July 22, 2009, and became generally available on October 22, 2009. It is the successor to Windows Vista, released nearly ...
,
Windows 8 Windows 8 is a major release of the Windows NT operating system developed by Microsoft. It was Software release life cycle#Release to manufacturing (RTM), released to manufacturing on August 1, 2012; it was subsequently made available for downl ...
, and
Windows 10 Windows 10 is a major release of Microsoft's Windows NT operating system. It is the direct successor to Windows 8.1, which was released nearly two years earlier. It was released to manufacturing on July 15, 2015, and later to retail on J ...
. In macOS, "Esc" usually closes or cancels a dialog box or sheet. The ++ combination opens the
Force Quit In computing, kill is a command that is used in several popular operating systems to send signals to running processes. Implementations Unix and Unix-like In Unix and Unix-like operating systems, kill is a command used to send a signal to a pr ...
dialog box, allowing users to end non-responsive applications. Another use for the Esc key, in combination with the Command key, is switching to Front Row, if installed. In most computer games, the escape key is used as a pause button and/or as a way to bring up the in-game menu, usually containing ways to exit the program. In the vi family of text editors, escape is used to switch modes. This usage is due to escape being conveniently placed in what is now the tab position on the
ADM-3A The ADM-3A was an influential early video display terminal, introduced in 1976. It was manufactured by Lear Siegler and had a 12-inch screen displaying 12 or 24 lines of 80 characters. It set a new industry low single unit price of $995. Its " ...
terminal keyboard used to develop vi, though it is now inconveniently placed. This is similar to how the extensive modifier keys in Emacs were easily used on the original keyboard (the
space-cadet keyboard The space-cadet keyboard is a keyboard designed by John L. Kulp in 1978 and used on Lisp machines at Massachusetts Institute of Technology (MIT), which inspired several still-current jargon terms in the field of computer science and influenced th ...
), being placed together, but these keys have now been spread around the keyboard, becoming more difficult to use. The TECO editor uses ESCape as a delimiter when used once, and as an ''execute'' key when used twice in a row.


Escape sequences on KSR terminals

Old keyboard Send/Receive (KSR) printers, and visual display units (VDUs), would normally be controlled by
escape sequences In computer science, an escape sequence is a combination of characters that has a meaning other than the literal characters contained therein; it is marked by one or more preceding (and possibly terminating) characters. Examples * In C and man ...
sent by the computer to the peripheral device, but there were situations where these devices could be used "off-line" with the keyboard effectively connected to the output device, and so the need could arise to type escape sequences "by hand" to control the peripheral. Although such devices are long out of use, standard processingAbout Unicode and Character Sets
, Joel Spolsky, ''Joel on Software'' of
ANSI Escape sequences ANSI escape sequences are a standard for in-band signaling to control cursor location, color, font styling, and other options on video text terminals and terminal emulators. Certain sequences of bytes, most starting with an ASCII escape charac ...
very similar to the 1970s
VT100 The VT100 is a video terminal, introduced in August 1978 by Digital Equipment Corporation (DEC). It was one of the first terminals to support ANSI escape codes for cursor control and other tasks, and added a number of extended codes for special f ...
, is implemented in both
ANSI.SYS ANSI.SYS is a device driver in the DOS family of operating systems that provides extra console functions through ANSI escape sequences. It is partially based upon a subset of the text terminal control standard proposed by the ANSI X3L2 Technical C ...
and other more modern pseudo-terminal interfaces used in
Unix-like A Unix-like (sometimes referred to as UN*X or *nix) operating system is one that behaves in a manner similar to a Unix system, although not necessarily conforming to or being certified to any version of the Single UNIX Specification. A Unix-li ...
environments, one example being
Linux console The Linux console is a system console internal to the Linux kernel. A system console is the device which receives all kernel messages and warnings and which allows logins in single user mode. The Linux console provides a way for the kernel and ...
s, meaning newer, higher-level abstractions haven't changed the fact that typing the escape key followed by something like the six characters '' 2;1m'' affects subsequently text in output, in this case turning it green.


References

{{keyboard keys Computer keys